'use strict';

module.exports = appInfo => {
  const config = {};

  //启动
  config.cluster = {
    listen: {
      // port: 7001,
      // hostname: '192.168.2.100',
      // path: '/var/run/egg.sock',
      port: 7001,
      //hostname: 'www.imetting.com'
    }
  }

  // 数据库配置
  config.sequelize = {
    dialect: 'mysql', // support: mysql, mariadb, postgres, mssql
    database: 'sale_order',
    host: 'localhost',
    port: '3306',
    username: 'root',
    password: 'root',
    timezone: '+08:00', // 设置北京时区
    logging: {

      info(sql) {
        console.log(sql)
      } //设置是否打印sql
    }
  };


  config.logger = {
    consoleLevel: 'DEBUG',
  };

  return config;
};
